<extend name="index::index" />
<block name="title"><title>order_info</title></block>
<block name="nav">
	<ul class="list-unstyled list">
		<empty name="login">
			<li>
			<a href="{:U('Index/login')}" class="anchorLink"><i class="icon-road scolor"></i>登录</a>
			</li>
			<li>
			<a href="{:U('Index/reg')}" class="anchorLink"><i class="icon-road scolor"></i>注册</a>
			</li>
			<else />
			<li>
			<a href="{:U('User/index',['id'=>$login['id']])}" style="text-transform:none;"><i class="icon-road scolor"></i><span style="color:#fff;">欢迎{$login['name']}</span></a>
			</li>
			<li>
			<a href="{:U('Index/loginout')}" class="anchorLink"><i class="icon-road scolor"></i>退出</a>
			</li>
		</empty>
		<li><a href="{:U('Index/index')}" class="anchorLink"><i class="icon-home scolor"></i>主页</a></li>
		<li><a href="{:U('Order/order_info')}" class="anchorLink"><i class="icon-user scolor"></i>订单详情</a></li>
		<li><a href="{:U('User/reset')}" class="anchorLink"><i class="icon-retweet scolor"></i>修改密码</a></li>
	</ul>
</block>
<block name="addver">
</block>
<block name="team">
</block>
<block name="main">
	<div class="team"><h3>订单管理</h3></div>
	<div class="bor hidden-xs"></div>
		<div style="min-height:400px;">
	<table class="table" border="1" cellspacing="0" cellpadding="5" align="center">
        <tr bgcolor="#ccc">
          <th>订单号</th>
          <th>收货地址</th>
          <th>是否付款</th>
          <th>是否发货</th>
          <th>收货人</th>
          <th>操作</th>
        </tr>
        <foreach name="list" item="val">  
        <tr>
         	<td>{$val['olo']}</td>
         	<td>{$val['address']}</td>
         	<td>
         		<if condition="$val['is_fu'] eq 1" >
					已付款
         		<else />
					<a href="{:U('Order/doorder_isfu',['id'=>$val['id']])}">未付款</a>
         		</if>
         	</td>
         	<td>
         		<if condition="$val['is_show'] eq 0">
         			未发货
         		<elseif condition="$val['is_show'] eq 1"/>
         			<a href="{:U('Order/doorder_isshow',['id'=>$val['id']])}">已发货</a>
         		<elseif condition="$val['is_show'] eq 2"/>
         			已签收
         		</if>	
         	</td>
         	<td>{$val['name']}</td>
         	<td><a href="{:U('Order/de',['id'=>$val['id']])}">删除</a>|<a href="{:U('Arguments/arguments',['id'=>$val['id']])}">详情</a></td>   	
        </tr>
        </foreach>
        <tr>
        	<th colspan="6" style="text-align:center;">{$Page}</th>
        </tr>
     </table>
    </div>
</block>